package modelLayer;

public class ProductLine {

	private Product product;
	private int quantity;
	private double subTotal;
	public ProductLine(Product product, int quantity) {
		this.product = product;
		this.quantity = quantity;
		this.subTotal = product.getPrice() * this.quantity;
	}
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public double getSubTotal() {
		return subTotal;
	}
	public void setSubTotal(double subTotal) {
		this.subTotal = subTotal;
	}

}
